<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>个人中心</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/common.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui-pull-refresh.css" />
    <style>
        html,
        body {
            width: 100%;
            min-height: 100%;
            background: rgba(0, 0, 0, 0);
            line-height: 1;
            overflow: hidden;
        }

        .gz_url_box {
            position: absolute;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.5);
            /*z-index: 999999;*/
        }

        .iframe_box {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 90vw;
            height: 50vh;
            background: #fff;
            border-radius: 0.5rem;
            overflow: hidden;
        }

        .iframe_box .btn_title {
            position: relative;
            padding: 0.5rem 0;
            text-align: center;
            color: #fff;
            background: #ffc75e;
            font-size: 0.8rem;
            font-weight: 600;
        }

        .iframe_box .btn_title .close_btn {
            position: absolute;
            right: 0.5rem;
            top: 50%;
            transform: translateY(-50%);
            color: #fff;
            font-size: 1rem;
        }

        .gz_url_box iframe {
            width: 100%;
            height: calc(100% - 0.9rem);
            border: none;
            padding-bottom: 1rem;
        }
    </style>
</head>

<body>
    <div id="app">
        <div class="gz_url_box">
            <div class="iframe_box">
                <div class="btn_title">签到规则
                    <div class="close_btn" onclick="api.closeFrame({})"><i class="aui-iconfont aui-icon-close"></i></div>
                </div>

                <iframe src="http://t.shunshiniao.net/Api/Api/rules/type/1"></iframe>
            </div>
        </div>
    </div>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/utils.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script type="text/javascript" src="../../script/aui-tab.js"></script>
<script type="text/javascript" src="../../script/aui-scroll.js"></script>
<script type="text/javascript" src="../../script/aui-pull-refresh.js"></script>
<script type="text/javascript">
    apiready = function() {
        api.ajax({
            url: window.Url.Freeucenter_signData,
            method: 'post',
            data: {
                values: {
                    token: $api.getStorage('token')
                }
            }
        }, function(ret, err) {
            if (ret) {
                console.log('获取签到规则链接-----' + JSON.stringify(ret));
                if (ret.re == 1) {
                    // gz_url = ret.data.rules;
                    $('iframe').attr('src', ret.data.rules);
                }

            } else {
                alert(JSON.stringify(err));
            }
        });
    };
</script>

</html>
